package com.grj.api.user;

import com.grj.model.user.dto.UserDTO;
import com.grj.model.user.entity.User;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import java.util.List;

/**
 * @author 14505
 */
@FeignClient(value = "nk-service-user", path = "/user")
public interface UserApi {

    /**
     * 商品
     * @return Goods
     */
    @RequestMapping(value = "/test",method = RequestMethod.GET)
    List<UserDTO> test();

    /**
     * 商品
     * @return UserDTO
     */
    @RequestMapping(value = "/info",method = RequestMethod.POST)
    UserDTO info(@RequestBody User user);
}
